from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from django.conf import settings
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'eup.views.home', name='home'),
    # url(r'^eup/', include('eup.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    (r'', include('usuarios.urls')),
    #(r'^$', include('registro.urls')),
    (r'^fincuestionario/', ('contestar.views.fin')),
    (r'^hipertextual/', include('edicion_hipertextual.urls')),
    (r'^contestar/', include('contestar.urls')),
    #(r'^login/', include('registro.urls')),
    (r'^logout/', 'eup.registro.views.logout_contestar'),
    (r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}),
    (r'^gestioncuestionarios/', include('gestion_cuestionarios.urls')),
    (r'^cuestionarios/', include('cuestionarios.urls'))    
    
    
)
urlpatterns += patterns('django.views.static',
	( r'^%s(?P<path>.*)' % settings.STATIC_URL[1:], 'serve', {'document_root': settings.STATIC_ROOT} ), #for your site's static CSS, Js, etc.
	( r'^%s(?P<path>.*)' % settings.MEDIA_URL[1:], 'serve',{'document_root': settings.MEDIA_ROOT} )) #for user-added files

